package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Name     string `gorm:"type:varchar(30)"json:"name"`
	Password string `gorm:"type:varchar(255)"json:"password"`
}
type Open struct {
	gorm.Model
	Title   string `gorm:"type:varchar(30)"json:"title"`
	Content string `gorm:"type:varchar(30)"json:"content"`
	Author  string `gorm:"type:varchar(30)"json:"author"`
	Like    int    `gorm:"type:int"json:"like"`
}
type Cate struct {
	gorm.Model
	Name string `gorm:"type:varchar(30)"json:"name"`
}
